Divide operator

Basic and Crystal syntax.

Usage

x/y

Divides value x by value y.

Examples

The following examples are applicable to both Basic and Crystal syntax:

25/5

Returns 5

1/3

Returns .333333

{file.SALES} / {file.FORECAST}

Returns .875, where {file.SALES} = 52533, {file.FORECAST} = 60000

{file.DAYSDUE} / 5

Returns 22, where {file.DAYSDUE} = 110

Note:    If the denominator = 0, the report will be halted with a divide by zero protection. If you want to avoid this type of problem, you should put a test in.

The following example is applicable to Crystal syntax:

If {file.FORECAST} = 0 Then

    0

Else

    {file.SALES} / {file.FORECAST}

Related topics

Formula 13



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com